/**
 * js
 */
angular.module('mall.shopcart.impl',[
    "ngStorage"
])

.config(['$stateProvider', '$urlRouterProvider', 
function($stateProvider, $urlRouterProvider) {
    $stateProvider
        .state('mall.shopcart.impl', {
            url: '',
            templateUrl: cmt_mall_templateprefix+'/shopcart/shopcart.html',
            controller: 'ImplShopCartController'
        })
    ;
}])

//餐谋团购物车控制器
.controller('ImplShopCartController',['$state','$scope',
    function($state,$scope){
        $scope.way = "ali";
        dismiss();
        //预下单
        $scope.post_order = function(order) {
            setCookie('placeorder','order',30);
            $state.go("placeorder",{order:order});
        }
    }
])
;
